home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
uucp
/
uupc
/
mac
/
mac_uupc_3.0_source.sea
/
(mail π)
/
macinit.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-07-26
|
419 b
|
29 lines
|
[
TEXT/KAHL
]
/* macinit.c
*/
#ifdef THINK_C
# include "unixlibproto.h"
#endif THINK_C
#include <stdio.h>
macinit()
{
SysEnvRec SysEnv;
int i;
SysEnvirons(1, &SysEnv);
if ((i = OpenRFPerm("\pUUPC Settings", 0, fsRdPerm)) == -1 &&
(i = OpenRFPerm("\pUUPC Settings", SysEnv.sysVRefNum, fsRdPerm)) == -1) {
fprintf( stderr, "ERROR: Can't find \"UUPC Settings\" file here or in System Folder\r" );
}
return 0;
}